package gaozhi.online.parent.privilege;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 权限注解
 * 用于标记需要进行权限控制的类或方法
 *
 * @author http://gaozhi.online
 * @since 2022-11-21
 * @version 1.0
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface Privilege {
    boolean isPublic() default false;
}